import request from '@/utils/request'

// -------- 图片设置 --------

let BASE_ADDRESS = '/base/config'


//分页查询
export const getConfigListPhotoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/listPhoto`,
        method: 'get',
        params: data
    })
}

//删除
export const getConfigRemovePhotoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/removePhoto`,
        method: 'delete',
        params: data
    })
}


//id查询
export const getConfigGetInfoPhotoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoPhoto`,
        method: 'get',
        params: data
    })
}

//修改
export const getConfigEditPhotoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/editPhoto`,
        method: 'put',
        data
    })
}


//添加
export const getConfigAddPhotoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/addPhoto`,
        method: 'post',
        data
    })
}